﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditArticle.aspx.cs" Inherits="DoAn_BumTruong_DesignPattern.Admin.EditArticle" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="js/jquery-1.4.1.js"></script>
    <script src="ckfinder/ckfinder.js"></script>
    <script src="ckeditor/ckeditor.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnSelectImg").click(function () {
                var finder = new CKFinder();
                finder.selectActionFunction = function (fileUrl) {
                    $('#<%=txtImgUrl.ClientID %>').val(fileUrl);
                };
                finder.popup();
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderAdmin" runat="server">

    <asp:Label ID="lblId" runat="server" Visible="false" />
    <asp:Label ID="lblTitle" runat="server" Text="[Title: Add/Edit]" CssClass="title" />
    <asp:Label runat="server" ID="lblStatus" Text="" CssClass="status" />

    <div class="round round-content">
        <table>
            <tr>
                <td class="style2">Title: </td>
                <td>
                    <asp:TextBox runat="server" CssClass="masterTooltip example3" ToolTip="Enter your title" ID="txtTitle" Width="400px"/>
                </td>
            </tr>
            <tr>
                <td class="style2">Alias:</td>
                <td>
                    <asp:TextBox ID="txtAlias" runat="server" CssClass="masterTooltip textfield example3" ToolTip="Enter your alias" Width="400px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">IntroText:</td>
                <td>
                    <CKEditor:CKEditorControl runat="server" ID="CKEditorIntroText" BasePath="~/Admin/ckeditor"></CKEditor:CKEditorControl>
                </td>
            </tr>
            <tr>
                <td class="style2">FullText:</td>
                <td>
                    <CKEditor:CKEditorControl runat="server" ID="CKEditorFullText" BasePath="~/Admin/ckeditor"></CKEditor:CKEditorControl>
                </td>
            </tr>
            <tr>
                <td class="style2">CreateBy:</td>
                <td>
                    <asp:Label ID="lblCreatedBy" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">CreatedDate:</td>
                <td>
                    <asp:Label ID="lblCreatedDate" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">ModifiedDate:</td>
                <td>
                    <asp:Label ID="lblModifiedDate" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">ModifiedBy:</td>
                <td>
                    <asp:Label ID="lblModifiedBy" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label Text="Image:" ID="txtImage" runat="server" />
                </td>
                <td>
                    <asp:TextBox ID="txtImgUrl" runat="server" CssClass="masterTooltip example3" ToolTip="Choose an image" Width="400px"></asp:TextBox>
                      <input type="button" id="btnSelectImg" value="..." style="height:32px; width:30px" />
                </td>
            </tr>
            <tr>
                <td class="style2">Published:</td>
                <td>
                    <asp:CheckBox ID="chkPublished" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">Hits:</td>
                <td>
                    <asp:Label ID="lblHit" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">CheckoutBy:</td>
                <td>
                    <asp:Label ID="lblCheckoutBy" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">CheckoutDate:</td>
                <td>
                    <asp:Label ID="lblCheckoutDate" runat="server" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td style="float: right;">
                    <asp:Button ID="btSave" runat="server" Text="Save" CssClass="myButton" ForeColor="Blue" />
                    <asp:Button ID="btReset" runat="server" Text="Reset" CssClass="myButton" ForeColor="Blue" />
                    <asp:Button ID="btClose" runat="server" Text="Close" CssClass="myButton" ForeColor="Blue"/>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
